<?php

namespace App\Admin\Actions\Grid\ToolAction;

use Dcat\Admin\Grid\BatchAction;

class ReturnActions extends BatchAction
{
    protected $title = '返回';

    /**
     * Handle the action request.
     *
     * @return \Dcat\Admin\Actions\Response|void
     */
    public function handle()
    {
        // $keys = $this->getkey();
        // $url = admin_route("device.print.list", ["ids" => implode("-", $keys)]);
        // if (count($keys) > 0) {
        //     return $this->response()->script("window.open('{$url}')");
        // }
    }


    protected function html(): string
    {
        return <<<HTML
<a href="javascript:history.back()" ><button class="btn btn-primary btn-mini">{$this->title()}</button></a>
HTML;
    }
}
